function changeAllowanceEffDate(ALLOWANCE_REQUEST_TYPE, ALLOWANCE_EFFECTIVE_DATE_TYPE) {

    if (ALLOWANCE_REQUEST_TYPE == 1 &&
        (isNull(ALLOWANCE_EFFECTIVE_DATE_TYPE) || (isNotEmpty(ALLOWANCE_EFFECTIVE_DATE_TYPE) && ALLOWANCE_EFFECTIVE_DATE_TYPE === "R"))){
        return true;
    }

    if (ALLOWANCE_REQUEST_TYPE == 2 &&
        (isNull(ALLOWANCE_EFFECTIVE_DATE_TYPE) || (isNotEmpty(ALLOWANCE_EFFECTIVE_DATE_TYPE) && ALLOWANCE_EFFECTIVE_DATE_TYPE === "C"))){
       return true;
    }
    if (ALLOWANCE_REQUEST_TYPE == 3 &&
        (isNull(ALLOWANCE_EFFECTIVE_DATE_TYPE) || (isNotEmpty(ALLOWANCE_EFFECTIVE_DATE_TYPE) && ALLOWANCE_EFFECTIVE_DATE_TYPE === "C"))){
        return true;
    }

    if (ALLOWANCE_REQUEST_TYPE == 4 ||ALLOWANCE_REQUEST_TYPE == 5){
        if (isNull(ALLOWANCE_EFFECTIVE_DATE_TYPE)){
            return true;
        }
    }
}
